<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	  <base href="<%=basePath%>">
		<title>在线证券分析系统之论坛主页</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
	     <link rel="stylesheet" type="text/css"
			href="./styles/tr_style.css"/>
			 <script type="text/javascript" src="./javaScripts/tr_toggle.js"></script>
			 <style type="text/css">
			  .tip_a a{
			   text-decoration: none;
			  }
			 </style>
			 
		
	</head>
	<body
		style="margin-top: 0px; margin-left: auto; margin-right: auto; text-align: center;">
		<div style="height: 52px; border: 0px solid #cccccc">
			<table width="100%"
				style="font-size: 12px; " border="0">
				 <tr>
				   <td colspan="2"><div style="text-align: left;width: 100%;line-height: 20px" class="tip_a">当前位置：<a href="<%=basePath%>index.jsp">首页</a><span>&nbsp;>>&nbsp;</span><a href="<%=basePath%>bbs/index.jsp">论坛</a></div></td>
				 </tr>
				<tr>
					<td align="left">
						今日:<s:property value="#application.moduleCountInfoDTO.dayPostAndReplyCount" /> &nbsp;&nbsp; 昨日:<s:property value="#application.moduleCountInfoDTO.yesterdayPostAndReplyCount" />&nbsp;&nbsp; 最高日:<s:property value="#application.moduleCountInfoDTO.dayMaxPostCount" />
					</td>
					<td align="right">
						主题:<s:property value="#application.moduleCountInfoDTO.totalPostCount" />&nbsp;&nbsp; 帖子:<s:property value="#application.moduleCountInfoDTO.totalPostCount+#application.moduleCountInfoDTO.totalReplyCount" /> &nbsp;&nbsp; 会员:<s:property value="#application.moduleCountInfoDTO.VipCount" />
					</td>
				</tr>
			</table>
		</div>
		<s:iterator   value="#application.initModule" var="parentModule" status="count">
		 
		<div class="content_con">
			<div class="content_con_header">
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td align="left" class="tb_left" valign="middle">
							<a href="<s:property value="#parentModule.moduleURI" />"><s:property value="#parentModule.moduleName" /></a>
						</td>
						<td align="right" class="tb_right" valign="middle">
						       <s:set value="#count.index+1" var="index" ></s:set>
						        
							<img src="./images/collapsed_no.gif" title="on" id="<s:property value="'img_0'+#index"/>"
								style="cursor: pointer">
						</td>
					</tr>
				</table>
			</div>
			<div class="contant_con_con" id="<s:property value="'contant_con_0'+#index"/>">
				<div class="contant_con_con_001">
					<table width="100%" cellpadding="0" cellspacing="0" border="0" >
						<tr>
							<td width="40%" valign="middle" align="center">
								板块
							</td>
							<td width="10%" valign="middle" align="center">
								主题
							</td>
							<td width="10%" valign="middle" align="center">
								回帖
							</td>
							<td width="40%" valign="middle" align="center">
								最后发表
							</td>
						</tr>
					</table>
				</div>
				<s:iterator value="#parentModule.childModule" var="childModule">
				<div class="contant_con_con_002">

					<table width="100%" cellpadding="0" cellspacing="0" border="0" class="tb_msg_">
						<tr bgcolor="#F5FAFE">
							<td width="40%" valign="middle" align="left" >
								<table cellpadding="0" cellspacing="0" border="0" height="100%"
									width="100%">
									<tr>
										<td width="60px" class="tip_left" >
											<img src="./images/forum.gif" />
										</td>
										<td align="left">
											<p class="p_font">
												<a href="<s:property value="#childModule.moduleURI"/>"><s:property value="#childModule.moduleName"/></a>
												<span class="span_date">(今日：<s:property value="#childModule.dayPostCount"/> )</span>
												<br>
												描述：
												 <s:if test="#childModule.moduleRemark!=null&&#childModule.moduleRemark.length()>1">  
												<s:property value="#childModule.moduleRemark"/>
												</s:if>
												<s:else>
												 暂无
												</s:else>
												<br>
												<span>版主:
												 <s:if test="#childModule.moduleManager!=null">
												<s:property value="#childModule.moduleManager"/>
												 </s:if>
												 <s:else>
												    尚未分配版主 	 
												 </s:else>
												</span>
											</p>
										</td>
									</tr>
								</table>
							</td>
							<td width="10%" valign="middle" align="center" class="td_02">
							   <s:if test="#childModule.postCount!=null">
								 <s:property value="#childModule.postCount"/>
								 </s:if>
								 <s:else>
								    0
								 </s:else>
							</td>
							<td width="10%" valign="middle" align="center" class="td_02">
							       <s:if test="#childModule.replyCount!=null">
								 <s:property value="#childModule.replyCount"/>
								 </s:if>
								 <s:else>
								   0
								 </s:else>
							</td>
							<td width="40%" valign="middle" align="center" class="td_03">
							   <s:if test="#childModule.lastPublishTitle!=null">
								   <s:property value="#childModule.lastPublishTitle"/>
								<br>
								<span style="color: black;">发表人：</span><span style="color: #5A6265"> <s:property value="#childModule.lastPublishAuthor"/></span>&nbsp;&nbsp;<span style="color: black;">by：</span><span
									style="color: #5A6265"> <s:property value="#childModule.lastPublishTime"/></span>
									</s:if>
									<s:else>
									   本模块暂无任何人发表内容
									</s:else>
							</td>
						</tr>
						 
					</table>

				</div>
				</s:iterator>
			</div>
		</div>
		 
		 </s:iterator>
		 
	</body>
</html>
